<?php if (!defined('THINK_PATH')) exit(); /*a:3:{s:65:"C:\wwwroot\xtgl\public/../application/admin\view\rotate\edit.html";i:1696605424;s:57:"C:\wwwroot\xtgl\application\admin\view\public\header.html";i:1672305798;s:57:"C:\wwwroot\xtgl\application\admin\view\public\footer.html";i:1670148044;}*/ ?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title><?php echo config('WEB_SITE_TITLE'); ?></title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" href="/static/admin/js/layui/css/layui.css" >
    <link rel="stylesheet" href="/static/admin/layAdmin/css/admin.css" >
    <script src="/static/admin/js/jquery.js"></script>
    <script src="/static/admin/js/jquery.form.js"></script>
    <script src="/static/admin/js/jmzhfsform.js"></script>
    <script src="/static/admin/js/layui/layui.js"></script>
    <script src="/static/admin/js/jmzhclass.js?v=1.222"></script>
    <link href="/static/admin/umeditor/themes/default/css/umeditor.css" type="text/css" rel="stylesheet">
    <script type="text/javascript" charset="utf-8" src="/static/admin/umeditor/umeditor.config.js"></script>
    <script type="text/javascript" charset="utf-8" src="/static/admin/umeditor/umeditor.min.js"></script>

    <link href="/static/admin/font-awesome/css/font-awesome.min.css" rel="stylesheet">

    <link href="/static/admin/js/layui_exts/webupload/uploader/style.css" type="text/css" rel="stylesheet">
    <link href="/static/admin/js/layui_exts/webupload/uploader/webuploader.css" type="text/css" rel="stylesheet">

    <script src="/static/admin/js/tableExport.js"></script>

    <link href="/static/admin/js/plugins/wx-audio/wx-audio.css" type="text/css" rel="stylesheet">

    <!--<script src="/static/admin/js/layui/layui.all.js"></script>-->
    <!--&lt;!&ndash;<link rel="stylesheet" href="/static/admin/layAdmin/css/font-awesome.min.css">&lt;!&ndash;fontAwesome图标库&ndash;&gt;&ndash;&gt;-->

</head>
<body>
    <style>
     .jminput40{width:40px;}
</style>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title><?php echo config('WEB_SITE_TITLE'); ?></title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" href="/static/admin/js/layui/css/layui.css" >
    <link rel="stylesheet" href="/static/admin/layAdmin/css/admin.css" >
    <script src="/static/admin/js/jquery.js"></script>
    <script src="/static/admin/js/jquery.form.js"></script>
    <script src="/static/admin/js/jmzhfsform.js"></script>
    <script src="/static/admin/js/layui/layui.js"></script>
    <script src="/static/admin/js/jmzhclass.js?v=1.222"></script>
    <link href="/static/admin/umeditor/themes/default/css/umeditor.css" type="text/css" rel="stylesheet">
    <script type="text/javascript" charset="utf-8" src="/static/admin/umeditor/umeditor.config.js"></script>
    <script type="text/javascript" charset="utf-8" src="/static/admin/umeditor/umeditor.min.js"></script>

    <link href="/static/admin/font-awesome/css/font-awesome.min.css" rel="stylesheet">

    <link href="/static/admin/js/layui_exts/webupload/uploader/style.css" type="text/css" rel="stylesheet">
    <link href="/static/admin/js/layui_exts/webupload/uploader/webuploader.css" type="text/css" rel="stylesheet">

    <script src="/static/admin/js/tableExport.js"></script>

    <link href="/static/admin/js/plugins/wx-audio/wx-audio.css" type="text/css" rel="stylesheet">

    <!--<script src="/static/admin/js/layui/layui.all.js"></script>-->
    <!--&lt;!&ndash;<link rel="stylesheet" href="/static/admin/layAdmin/css/font-awesome.min.css">&lt;!&ndash;fontAwesome图标库&ndash;&gt;&ndash;&gt;-->

</head>
<body>
<div class="layui-tab" lay-filter="test1">
  <ul class="layui-tab-title">
    <li class="layui-this" lay-id="111" >修改轮播图片管理</li>
  </ul>
  <div class="layui-tab-content">
    <div class="layui-tab-item layui-show">
<div class="layui-fluid">
    <div class="layui-card" >
        <form class="layui-form" action="" id="form1" lay-filter="form1">
<div class="layui-form-item" >
    <label class="layui-form-label">链接</label>
	<div class="layui-input-block" >
		<input type="text"  class="layui-input" id="link" name="link" value="<?php echo $info['link']; ?>" >﻿<input type="hidden" id="id" name="id" value="<?php echo $info['id']; ?>">
	</div>
    <div class="layui-form-mid layui-word-aux"></div>
</div>
<div class="layui-form-item" >
    <label class="layui-form-label">标题</label>
	<div class="layui-input-block" >
		<input type="text" lay-verify="required" class="layui-input" id="title" name="title" value="<?php echo $info['title']; ?>" >
	</div>
    <div class="layui-form-mid layui-word-aux"></div>
</div>
<div class="layui-form-item" >
    <label class="layui-form-label">展示状态</label>
	<div class="layui-input-block" >
		<select name="status" id="status"  lay-filter="selectstatus" class="status">
                <option value="1" <?php if($info['status']=='1'): ?> selected="selected"<?php endif; ?>  >是</option>
                <option value="0" <?php if($info['status']=='0'): ?> selected="selected"<?php endif; ?>  >否</option>
</select>
	</div>
    <div class="layui-form-mid layui-word-aux"></div>
</div>
<div class="layui-form-item" >
    <label class="layui-form-label">图片</label>
	<div class="layui-input-block" >
		<div class="layui-upload-drag" id="pictures_upload1">
  <i class="layui-icon"></i>
  <p>点击上传，或将文件拖拽到此处</p>
  <div class="layui-hide" id="pictures_uploadDemoView">
    <hr>
    <img src="<?php echo $info['pictures']; ?>" alt="上传成功后渲染" style="max-width: 196px">
  </div>
  <input type="hidden" name=pictures id=pictures value="<?php echo $info['pictures']; ?>"  >
</div>
<SCRIPT>
	layui.use(['upload', 'jquery'], function(){
		var $ = layui.$
			,upload = layui.upload;
		//拖拽上传
		layui.$('#pictures_uploadDemoView').removeClass('layui-hide')
		  upload.render({
			elem: '#pictures_upload1'
			,url: uploadimgurl //改成您自己的上传接口
			,done: function(res){
				console.log(res)
			  layer.msg('上传成功');
			  $('#pictures').val(res.data)
			  layui.$('#pictures_uploadDemoView').removeClass('layui-hide').find('img').attr('src', res.data);
			}
		  });
	});
</SCRIPT>
	</div>
    <div class="layui-form-mid layui-word-aux"></div>
</div>
            <div class="layui-form-item">
                <div class="layui-input-block">
                    <button type="submit" class="layui-btn" lay-submit="" lay-filter="savedata">保存修改</button>
                </div>
            </div>
        </form>
        <script>
            //分组控制
                ////有参隐藏
                var grouppara = "";
                var grouphidden = "";
                if (grouphidden !== undefined) {
                    var arr1 = grouphidden.split(","); var arr2 = grouppara.split(",");
                    var urlParams = new URLSearchParams(window.location.search);
                     var ishiiden=0;
                     for (var q = 0; q < arr2.length; q++) {
                                if (urlParams.has(arr2[q])) {ishiiden=1;}
                      }
                    for (var q = 0; q < arr1.length; q++) {
                      if(ishiiden==1)
                      {
                            $(".formitemgroup" + arr1[q]).closest(".layui-form-item").hide();
                      }
                    }
                }
        </script>
       <script>
           <?php  if(session('roleid')>5){  ?>
            $("input[name='ispublic']").parent().parent().hide();
           <?php } ?>
        </script>
    </div>
</div>
<script>
</script>
      <div id="headCrop" style="display:none">
    <div class="tailoring-content-one">
        <label title="选择图片" for="chooseImg" class="layui-btn">
            <input type="file" accept="image/jpg,image/jpeg,image/png" name="file" id="chooseImg" class="hidden" onchange="selectImg(this)"><i class="fa fa-cloud-upload"></i>
            选择图片
        </label>
    </div>
    <div class="ibox-content">
        <div class="tailoring-content">
            <div class="tailoring-content-two">
                <div class="tailoring-box-parcel" style="text-align: center">
                    <img id="tailoringImg">
                    <span class="word" style="position:relative;top:50%;font-size:14px;color: #c2c2c2">仅支持JPG、JPEG、PNG格式的图片文件</span><br>
                    <!--<span class="size" style="position:relative;top:50%;font-size:16px">文件不能大于2MB</span>-->
                </div>
                <div class="preview-box-parcel">
                    <!--<p>图片预览：</p>-->
                    <div class="square previewImg"></div>
                    <div class="circular previewImg"></div>
                </div>
            </div>
        </div>
    </div>
    <div class="modal-footer">
        <span class="layui-btn cropper-reset-btn" style="float:left">复位</span>
        <span class="layui-btn zoomIn" style="float:left">放大</span>
        <span class="layui-btn zoomOut" style="float:left">缩小</span>
        <span class="layui-btn cropper-rotate-btn" style="float:left">旋转</span>
        <span class="layui-btn cropper-scaleX-btn" style="float:left">换向</span>
        <span class="layui-btn " id="sureCut"><i class="fa fa-save"></i> 保存</span>
        <span class="layui-btn layui-btn-primary" onclick="layer.closeAll()"><i class="fa fa-close"></i> 关闭</span>
    </div>
</div>


<script src="/static/admin/js/plugins/wx-audio/wx-audio.js" ></script><!--音频播放器组件-->

<script src="/static/admin/js/layui_exts/webupload/uploader/webuploader.js"></script>

<script src="/static/admin/layAdmin/js/Icon.js"></script><!--fontAwesome图标库-->
<script src="/static/admin/layAdmin/js/wk.js"></script><!--封装方法-->


<script>
    layui.config({
        base: '/static/admin/layAdmin/src/' //静态资源所在路径
    }).extend({
        index: 'lib/index' //主入口模块
        ,formSelects: 'formSelects-v4'
    }).use(['index','formSelects']),function(){
        var formSelects = layui.formSelects
    };
</script>
<script>


    //关闭自动填充
    $('input').attr('autocomplete',"off");

    // //图片灯箱
    // function imgDisplay(obj) {
    //     var src = $(obj).attr("src");
    //     var imgHtml = '<div class="showP"><img src=' + src + ' style="margin-top: 120px;height:50%;margin-bottom:120px;"  /><p class="closeP"  onclick="closePicture(this)"><span class="cha">×</span></p></div>'
    //     $('body').append(imgHtml);
    // }
    //
    // //关闭图片灯箱
    // function closePicture(obj) {
    //     $(obj).parent("div").remove();
    // }

    //tips框
    $('#offAll').on('mouseover', function(){
        var that = this;
        layer.tips('<span style="color:#686B6D;"><i class="fa fa-info-circle"></i> 若未勾选默认禁用全部</span>', that,{tips: [2, '#F2F2F2'],time: 10000});
    });
    //tips框
    $('#onAll').on('mouseover', function(){
        var that = this;
        layer.tips('<span style="color:#686B6D;"><i class="fa fa-info-circle"></i> 若未勾选默认启用全部</span>', that,{tips: [2, '#F2F2F2',''],time: 10000});
    });
    //tips框
    $('#excel').on('mouseover', function(){
        var that = this;
        layer.tips('<span style="color:#686B6D;"><i class="fa fa-info-circle"></i> 导出筛选完成数据</span>', that,{tips: [2, '#F2F2F2',''],time: 10000});
    });
    //关闭tips框
    $('#offAll,#onAll,#export,#excel').on('mouseout', function(){
        layer.closeAll('tips');
    });

    //layui公共操作
    layui.use(['form','table'], function() {
        var form = layui.form
            ,table = layui.table
        //重置搜索框
        $('#empty').on('click', function () {
            $('.layui-input').val('');
            // $(".search").trigger("chosen:updated");
            $('select').each(function (i, j) {
                $(j).find("option:selected").attr("selected", false);
                form.render('select')
            })
        });
        //表格排序
        table.on('sort(LAY-table-manage)', function(obj){
            table.reload('LAY-table', {
                initSort: obj //记录初始排序，如果不设的话，将无法标记表头的排序状态
                ,where: { //请求参数
                    field: obj.field //排序字段
                    ,order: obj.type //排序方式
                }
            });
        });
        //监听搜索
        form.on('submit(LAY-search)', function (data) {
            //执行重载
            table.reload('LAY-table', {
                page: {
                    curr: 1 //重新从第 1 页开始
                }
                ,where: data.field
            });
        });

    });
</script>
      <script>
			var uploadimgurl = "<?php echo url('/comm/upload/uploadimg'); ?>";
      </script>
      <script src="/static/admin/js/jmzhfsconfiguploadform.js?v=1.222"></script>
      <script type="text/javascript">
            $(function () {
                  formsubmit('form1',"<?php echo $editurl; ?>");
            });
      </script>
<style>
    /* 每列表单过多，防止窜行，缩小宽度 */
    .layui-form-label{
       padding: 9px 10px;
    }
</style> 
</body>
</html>
    </div>
  </div>
</div>
